import requests

url = "https://club.bwplus.com.tw/api/resources/comment/addComment?resType=3"

payload = "resId=46502&commentId=&content=45gh44"
headers = {
    'Accept': '*/*',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Authorization': 'token=c2909bee5729470aaae7c03836e50252',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'Origin': 'https://bwplus.com.tw',
    'Pragma': 'no-cache',
    'Referer': 'https://bwplus.com.tw/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1'
}

commentId = 4489
for i in range(1000):
    payload = "resId=46502&commentId=&content= 45gh44" + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)

    payload = "resId=46502&commentId=" + str(commentId) + "&content= 45gh44" + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)

    payload = "resId=46502&commentId=" + str(16580) + "&content= 45gh44" + str(i)
    response = requests.request("POST", url, headers=headers, data=payload)
    print(response.text)